阅读更多

1顶
1踩

企业架构

原创新闻 Struts v2.0.1 BETA Release

2006-11-09 07:46 by 正式记者 Readonly 评论(0) 有6119人浏览
看了一下下载的代码,几乎就是webwork2.x改了个package名字弄过去的,theme, pojo的form,action, interceptor, tag这些基本的元素和WW是一摸一样的,从WW转到struts2的学习成本就是0了...

引用

The Apache Struts project is pleased to announce the availability of
the Struts 2.0.1 BETA release
[http://struts.apache.org/download.cgi#struts201].

Apache Struts 2 is an elegant, extensible framework, well suited for
enterprise-ready Java web applications. The framework is designed to
streamline the full development cycle, from building, to deploying, to
maintaining applications over time.

Apache Struts 2 was originally known as WebWork 2. After working
independently for several years, the WebWork and Struts communities
joined forces to create Struts2. This new version of Struts is simpler
to use and closer to how Struts was always meant to be.

* Build!
o Easy startup - A Maven archetype, template application, and
bootstrap tutorial help jumpstart new projects.
o Improved Design - All framework classes are based on interfaces.
Core interfaces are HTTP independent.
o Enhanced Results - Unlike ActionForwards, Struts2 Results can
actually help prepare the response.
o Enhanced Tags - Struts2 tags don't just output data, but provide
stylesheet-driven markup, so that we can create consistent pages with
less code.
o Stateful Checkboxes - Struts2 checkboxes do not require special
handling for false values.
o Easy cancel handling - The Struts2 Cancel button can go directly
to a different action.
o POJO forms - No more ActionForms! We can use any JavaBean we like
or put properties directly on our Action classes. No need to use all
String properties!
o POJO Actions - Any class can be used as an Action class. Even the
interface is optional!
o Easy Spring integration - Struts2 Actions are Spring-aware. Just
add Spring beans!
o First-class AJAX support - The AJAX theme gives interactive
applications a boost.

* Deploy!
o QuickStart - Configuration files are reloadable so many changes
can be made on the fly without restarting a web container.
o Easy plugins - Framework extensions can be added by dropping in a
JAR. No manual configuration required! Bundled plugins add support for
JavaServer Faces, JasperReports, JFreeChart, Tiles, and more ...
o Easy portlets - Automatic portlet support allows portal and
servlet deployments with no code changes.

* Maintain!
o Easy-to-test Actions - Struts2 Actions are HTTP independent and
can be tested without resorting to mock objects.
o Intelligent Defaults - Most framework configuration elements have
a default value that we can set and forget.
o Easy-to-customize controller - Struts 1 lets us customize the
request processor per module, Struts2 lets us customize the request
handling per action, if desired.
o Easy-to-tweak tags - Struts2 tag markup can be altered by changing
an underlying stylesheet. Individual tag markup can be changed by
editing a FreeMarker template. No need to grok the taglib API! JSP,
FreeMarker, and Velocity tags are fully supported.
o Integrating Debugging - Built-in debugging tools supporting
profiling, problem reports, and interactive object model queries.

For more, visit the Apache Struts 2 website [http://struts.apache.org/2.x/].
1
1
评论 共 0 条 请登录后发表评论

发表评论

您还没有登录,请您登录后再发表评论

相关推荐

  • 配置nginx的403错误页面跳转

    在nginx.conf同目录下创建blockips.conf,加入需要阻止的ip(deny 192.168.1.3) 在nginx中 http         { 。。。。。。。。                          include blockips.conf;         } 导入阻止ip 建立403 error页面 Error 403 - IP Addr

  • SpringBoot yml配置文件jar包外修改(动态生效)

    SpringBoot yml配置文件jar包外修改(动态生效)

  • nginx封ip,禁用IP段的设置说明

    nginx的ngx_http_access_module 模块可以封配置内的ip或者ip段,语法如下: deny IP; deny subnet; allow IP; allow subnet; # block all ips deny all; # allow all ips allow all; 如果规则之间有冲突,会以最前面匹配的规则为准。 如何配置禁...

  • 使用Python进行二进制文件读写

    <br />总的感觉,python本身并没有对二进制进行支持,不过提供了一个模块来弥补,就是struct模块。<br />python没有二进制类型,但可以存储二进制类型的数据,就是用string字符串类型来存储二进制数据,这也没关系,因为string是以1个字节为单位的。<br /> <br />import struct<br />a=12.34<br />#将a变为二进制<br />bytes=struct.pack('i',a)<br /> <br />此时bytes就是一个string字符串,字符

  • 【Nginx】如何封禁IP和IP段?看完这篇我会了!!

    写在前面 Nginx不仅仅只是一款反向代理和负载均衡服务器,它还能提供很多强大的功能,例如:限流、缓存、黑白名单和灰度发布等等。在之前的文章中,我们已经介绍了Nginx提供的这些功能。今天,我们来介绍Nginx另一个强大的功能:禁用IP和IP段。 禁用IP和IP段 Nginx的ngx_http_access_module 模块可以封配置内的ip或者ip段,语法如下: deny IP; ...

  • springboot面试题2020,手动实现第三方jar包修改并重新打包

    第三步:运行jar包,程序调用jar中的方法,查看运行效果 修改前: 修改后: 此时预览报错页面下方的对应的jar中的官方QQ群信息已删除,目的达到。 2.需要生成字节码文件的jar包修改方式 如图:我现在要修改实体类对应的文件,添加一个新属性,该怎么做呢? 第一步:同上,找到要修改的jar包,右键选择打开方式,然后选择反编译插件jd-gui(该应用程序需自己安装),打开后,找到对应的文件,双击打开,然后ctrl+c复制文件中的内容,粘贴到notepad软件中,修改对应的内容后另存jar包所在的同级.

Global site tag (gtag.js) - Google Analytics